<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title></title>
</head>
<body>
<div class="contant">
<div class="row">
        <div class="top">首页>审批申请</div>
        <div class="content addapply">
        <form action="{:U('Express/confirm_info')}" method="post" id='confirm'>
            <div class="box" style='width: 56%'>
                <h1>快递确认(内勤渠道)<span>(标*为必填项)</span></h1>
                <div class="list-block">
                    <div class="row">
                        <label>寄件人:</label>
                        <input type="text" name="send_name" value='{$info.send_name}' disabled="disabled">
                        <label>收件人:</label>
                        <input type="text" name="addressee" value='{$info.addressee}' disabled="disabled">
                    </div>
                    <div class="row">
                        <label>快递单号:</label>
                        <input type="text" name="express_number" value='{$info.express_number}' disabled="disabled">
                        <label>客户姓名:</label>
                        <input type="text" name="user_name" value='{$user.user_name}' disabled="disabled">
                    </div>
                    <div class="row">
                        <label>快递内容:</label>
                        <input type="checkbox" onclick="swapCheck()" /><span for="file1" style="color: red">全选/取消</span>
                        <input type='checkbox' id='file1' name='file[]' value='1' ><span for="file1">借款合同</span>
                        <input type='checkbox' id='file2' name='file[]' value='2' ><span for="file2">抵押合同</span>
                        <input type='checkbox' id='file4' name='file[]' value='4' ><span for="file4">身份证复印件</span>
                        <input type='checkbox' id='file16' name='file[]' value='16' ><span for="file16">委托书(客户)委托书(银行）</span>
                        <input type='checkbox' id='file17' name='file[]' value='17' ><span for="file17">机动车抵押</span>
                        <input type='checkbox' id='file18' name='file[]' value='18' ><span for="file18">登记/质押备案申请表</span>
                        <input type='checkbox' id='file19' name='file[]' value='19' ><span for="file19">银行营业执照复印件</span>
                    </div>
                    <div class="row">
                        <label>快递时间:</label>
                        <input type="text" id="express_times" name="express_times" value="{$info.express_times|date='Y-m-d',###}" class="datepicker" readonly disabled="disabled"/>
                        <!-- <input type="text" name="express_time"> -->
                        <label>快递公司:</label>
                        <input type="text" name="express_company" value='{$info.express_company}' disabled="disabled">
                   </div>
                    <div class="row">
                        <label>接收人: <i class="required">*</i></label>
                           <input type="text" name="recipient" value='{$info.recipient}'>
                     </div>
                </div>
                <div class="list-block">
                    <label>待定备注<i class="required">*</i>
                        <input type="text" name="note" value=''>
                    </label>
                </div>

                <div class="list-block">
                    <input type="button" class="button01" id='tijiao' value="提交" name="">
                    <input type="hidden"  value="{$user.id}" name="user_id">
                    <input type="hidden"  id='confirm_type' value="" name="confirm_type">
                    <input type="button" class="button01" id='wait' value="待定" name="">
                </div>
            </div>
            </form>
        </div>
    </div>
</div>
    <script type="text/javascript" src='{:COM}js/daterangepicker.min.js'></script>
    <script src="{:COM}js/ajaxfileupload.js"></script>
    <script type="text/javascript">
        <volist name="info.confirm_file" id="confirm_file">
            $('#file{$confirm_file}').attr('checked', true);
            $('#file{$confirm_file}').attr('disabled', true);
        </volist>
    </script>

    <script type="text/javascript">
    $('input.datepicker').datetimepicker({format : "yyyy-mm-dd", minView : 2, autoclose : true});
    $("#tijiao").click(function(){
        $('#confirm_type').val(0);
        $('#confirm').submit();
    });

    $("#wait").click(function(){
        $('#confirm_type').val(1);
        $('#confirm').submit();
    });
       var isCheckAll = false;
        function swapCheck() {
            if (isCheckAll) {
                $("input[type='checkbox']").each(function() {
                    this.checked = false;
                });
                isCheckAll = false;
            } else {
                $("input[type='checkbox']").each(function() {
                    this.checked = true;
                });
                isCheckAll = true;
            }
        }
    </script>
</body>
</html>